class CreateInfoCategories < ActiveRecord::Migration
  def self.up
    create_table :info_categories do |t|
			t.integer :parent_id, :default => 0
			t.string :cat_name, :null => false
			t.integer :level, :default => 0
			t.boolean :is_parent, :default => 0
			t.integer :sort_order, :default => 0
			t.integer :status, :default => 1
			t.integer :flag
			t.string :permalink
			t.string :meta_keyword
			t.string :meta_description
      t.timestamps
    end
    add_index :info_categories, :permalink
  end

  def self.down
    drop_table :info_categories
  end
end
